package org.black.missedCall2.reply.utils.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * This ListView would not collapse items.
 * 
 * @author blackkuo
 * 
 */
public class ExpandAllListView extends ListView {

	public ExpandAllListView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);

	}

	public ExpandAllListView(Context context) {
		super(context);
	}

	public ExpandAllListView(android.content.Context context,
			android.util.AttributeSet attrs) {
		super(context, attrs);

	}

	public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
				MeasureSpec.AT_MOST);
		super.onMeasure(widthMeasureSpec, expandSpec);

	}

}
